import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import permission from './modules/permission'
import production from './modules/production'
import rolePermission from './modules/rolePermission'
import role from './modules/role'
import userManagement from './modules/userManagement'
import upload from './modules/upload'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    production,
    rolePermission,
    role,
    userManagement,
    upload
  },
  getters
})

export default store
